<table class="table table-hover">
  <thead>
		<tr>
        <th>
													ID
                                                        
													</th>
													<th>编号</th>
													<th>名称</th>
                          <th>电话</th>
                          <th>车辆数量</th>
                          <th>消费次数</th>
                          <th>消费金额</th>

                         
                         
													
												</tr>
											</thead>
											
                      <tbody>

                      @foreach($list as $v)
                          <tr>
                              <td>
                                  {{$v->id}}
                                                        
                                                      
                              </td>
                                                    
                  <td>
                      {{$v->code}}
                  </td>
                  <td>{{$v->name}}</td>
                  <td>
                      {{$v->phone}}
                  </td>
                  <td>
                      
                        {{$v->car_num}}
                  </td>
                  <td>
                     {{$v->task->count()}}
                  </td>
                  <td>
                      {{$v->task->sum('total_money')}}
                  </td>                             
                                                    
                                                    
                                                
                                                    
                                                   
                  
              </tr>
                                            @endforeach    
                                                
                                               
                                               
                                                
                                               
                                                
                                            
                                            </tbody>
                                        </table>
                                 
                        
                        

                  
   
        
    
